var Problem=Problem||{};
fastCSharp.Copy(Problem,{
Judges:{},
Load:function()
	{
	var SkinValue=fastCSharp.PageView.SkinValue;
	if(SkinValue.SkinValue.query&&SkinValue.SkinValue.query.problemId&&SkinValue.SkinValue.problems.length)
		{
		var ViewId=fastCSharp.ViewObjects.length;
		fastCSharp.ViewObjects.push(SkinValue.problems[0]);
		this.TryShow(ViewId);
		}
	},
TryShow:function(ViewId)
	{
	var SkinValue=fastCSharp.ViewObjects[ViewId],Value=SkinValue.SkinValue;
	if(Value.IsShowJudge)	SkinValue.IsShowJudge.Set(0);
	else	{
		if(Value.IsJudges==1)	SkinValue.IsShowJudge.Set(1);
		else if(!Value.IsJudges)
			{
			Value.IsJudges=-1;
			LoadAjax.Get(fastCSharp.ThisFunction(this,this.OnGetJudges,[SkinValue]),this.UserProblemJudgePath,{userId:fastCSharp.PageView.SkinValue.SkinValue.user.Id,problemId:Value.Problem.Id});
			}
		}
	},
OnGetJudges:function(Value,SkinValue)
	{
	if(Value)
		{
		SkinValue.SkinValue.IsJudges=1;
		SkinValue.SkinValue.judges=Value.judges;
		SkinValue.IsShowJudge.Set(1);
		}
	}
		});